package com.booby.generic;

/**
 * 功能描述: 方法泛型
 *
 * @author: lizt
 * @date: 2020/8/15 23:12
 **/

public class GenericMethode {

    public <T> T  sayHi(T param){
        System.out.println(param.getClass().getName());
        return param;
    }

    public static void main(String[] args) {
        GenericMethode genericMethode = new GenericMethode();
        genericMethode.sayHi(123);
        genericMethode.sayHi("Hello World!");
    }
}
